<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form action="tiaozhuan.html">
        <input type="text" name="username" id="usename">
        <input type="password" name="password" id="password">
        <button>登录噻</button>
    </form>
    <script>
        // var getusename = document.getElementById("usename");
        // var getpassword = document.getElementById("password")
        // var btn = document.querySelector("button")
        // btn.onclick = function () {
        //     var usename = getusename.value
        //     var password = getpassword.value
        //     window.location.href="./tiaozhuan.html?用户名是"+usename+"密码是"+password
        //     window.location.href = `./tiaozhuan.html?用户名${usename}密码是${password}`
        // }
    </script>
</body>

</html>